import request from "@/utils/request";

//方案列表
export function getPlanList(params) {
  return request({
    url: "/plan/list",
    method: "get",
    params,
  });
}

//新增方案
export function addPlan(params) {
  return request({
    url: "/plan/addPlan",
    method: "post",
    data: params,
  });
}
//修改方案
export function updatePlan(params) {
  return request({
    url: "/plan/updatePlan",
    method: "post",
    data: params,
  });
}
//获取方案详情
export function getPlanInfo(params) {
  return request({
    url: "/plan/getPlanInfo",
    method: "get",
    params,
  });
}

//删除方案
export function delPlan(params) {
  return request({
    url: "/plan/delPlan",
    method: "get",
    params,
  });
}

//下发执行计划

//打分

//老师培训记录列表
export function getTeacherTrainRecordList(params) {
  return request({
    url: "/train/teacher/getTeacherTrainRecordList",
    method: "get",
    params,
  });
}

//学生培训记录列表
export function getStudentTrainRecordList(params) {
  return request({
    url: "/train/student/getStudentTrainRecordList",
    method: "get",
    params,
  });
}
//学生培训记录列表
export function getTrainSimulateRecordList(params) {
  return request({
    url: "/train/student/getTrainSimulateRecordList",
    method: "get",
    params,
  });
}
//学生培训记录列表
export function getTrainRecordInfo(params) {
  return request({
    url: "/train/getTrainRecordInfo",
    method: "get",
    params,
  });
}

export function getSimulateRecord(params) {
  return request({
    url: "/train/getSimulateRecord",
    method: "get",
    params,
  });
}

//正式打分
export function paperMarking(params) {
  return request({
    url: "/train/paperMarking",
    method: "post",
    data: params,
  });
}

//模拟打分
export function paperMarkingSimulate(params) {
  return request({
    url: "/train/paperMarkingSimulate",
    method: "post",
    data: params,
  });
}

//导出学生培训记录
export function exportStudentTrainRecord(params) {
  return request({
    url: "/student/exportStudentTrainRecord",
    method: "get",
    params,
  });
}


// 学生待考列表
export function getExaminationPlanList(params) {
  return request({
    url: '/examination/student/getStudentExaminationPlanList',
    method: 'get',
    params
  })
}
// 老师考试计划列表
export function getTeacherExaminationPlanList(params) {
return request({
  url: '/examination/teacher/getTeacherExaminationPlanList',
  method: 'get',
  params
})
}

//下发待考
export function addExaminationPlan(params) {
  return request({
    url: '/examination/addExaminationPlan',
    method: 'post',
    data:params
  })
}

//删除待考
export function delExaminationPlan(params) {
  return request({
    url: '/examination/delExaminationPlan',
    method: 'get',
    params
  })
}

//详情信息
export function getExaminationPlanInfo(params) {
  return request({
    url: '/examination/getExaminationPlanInfo',
    method: 'get',
    params
  })
}


export function getCourseListByExaminationPlanId(params) {
  return request({
    url: '/examination/getCourseListByExaminationPlanId',
    method: 'get',
    params
  })
}

export function getQuestionListByExaminationPlanId(params) {
  return request({
    url: '/examination/getQuestionListByExaminationPlanId',
    method: 'get',
    params
  })
}
